package br.com.nuccitec.jfera.business;

import java.util.List;

import javax.jdo.PersistenceManager;
import javax.jdo.Query;

import br.com.nuccitec.jfera.api.IUser;
import br.com.nuccitec.jfera.jdo.IQuery;
import br.com.nuccitec.jfera.validation.vo.IVOColaborator;

import com.google.appengine.api.datastore.Key;

public interface IBusinessColaboratorFacade extends IVOColaborator {
	public Query getQuery(PersistenceManager pm, Class<?> clazz, IQuery i);

	public void setLoggedUser(IUser user);

	public void logError(Class<?> clazz, String message);

	public <E> List<E> findAll(Class<E> clazz);

	public <E> List<E> findAllFromUser(Class<E> clazz);

	public boolean loggedUserHasRole(Object role);

	public Key stringToKey(String encodedId);
}
